package cn.kgc.ubagnet.controller;

import cn.kgc.ubagnet.pojo.Buyer;
import cn.kgc.ubagnet.pojo.Product;
import cn.kgc.ubagnet.pojo.Protype;
import cn.kgc.ubagnet.service.buyer.BuyerService;
import cn.kgc.ubagnet.service.buyer.CrowdBuyerDetailService;
import cn.kgc.ubagnet.service.product.ProductService;
import cn.kgc.ubagnet.service.protype.ProtypeService;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import javax.websocket.Session;
import java.util.List;

@Controller
public class RelayController {

    //跳转登录页面
    @RequestMapping("/tologin")
    public String tologin(){
        return "login";
    }
    //跳转主页面
    @RequestMapping("/")
    public String toindex(){
        return "index";
    }

    //查看商品详情
    @RequestMapping("/item_show")
    public String toitem_show(){
        return "item_show";
    }

    @Resource
    BuyerService buyerService;
    //跳转用户中心页面
    @RequestMapping("/toYonghu")
    public String toYonghu(){
        return "udai_welcome";
    }

    //跳转到修改用户信息页面
    @RequestMapping("/tosetting")
    public String tosetting(){
        return "udai_setting";
    }

}
